<?php
//try {
#查询操作测试
//$find = $db->query("SELECT * FROM lh_user WHERE id = ?",[1]);
//执行数据测试
//$res = $db->execute("INSERT INTO lh_user(`username`,`password`,`status`)VALUES('admin123','123456',1)");
//测试链式操作
//var_dump($db->table('lh_user')->field('id','username','password')->limit(0,10)->where('id=1')->orderBy('id asc')->get());
//添加测试
//var_dump($db->table('lh_user')->insert(['username'=>'lhss','password'=>'123456']));
//修改测试1
//var_dump($db->table('lh_user')->where('id=2')->update(['username'=>'ls','password'=>'123456']));
#删除测试11
//    var_dump($db->table('lh_user')->where('id=3')->delete());

//}catch (Exception $e){
//    echo $e->getMessage();
//}

//throw new \Lh\Exception\ValidateException("标题不能为空");

//\Lh\server\Validate::make();